In [2]:
import graphlab
In [3]:
image_train = graphlab.SFrame('image_train_data/')
In [4]:
image_test = graphlab.SFrame('image_test_data/')
In [5]:
graphlab.canvas.set_target('ipynb')
In [6]:
image_train['image'].show()
In [7]:
raw_pixel_model = graphlab.logistic_classifier.create(image_train, target='label', features=['image_array'])
In [8]:
image_test[0:3]['image'].show()
In [9]:
image_test[0:3]['label']
Out[9]:
In [10]:
raw_pixel_model.predict(image_test[0:3])
Out[10]:
In [11]:
raw_pixel_model.evaluate(image_test)
Out[11]:
In [12]:
len(image_train)
Out[12]:
In [14]:
#deep_learning_model = graphlab.load_model('http://s3.amazonaws.com/GraphLab-Datasets/deeplearning/imagenet_model_iter45')
image_train.head()
Out[14]:
In [15]:
deep_features_model = graphlab.logistic_classifier.create(image_train, target='label', features=['deep_features'])
In [16]:
deep_features_model.predict(image_test[0:3])
Out[16]:
In [17]:
deep_features_model.evaluate(image_test)
Out[17]:
In [ ]: